<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>乐淘</title>
    <link rel="stylesheet" href="assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="./css/detail.css">
    <script src="./assets/artTemplate/template-web.js"></script>
    <script src="./assets/mui/js/mui.min.js"></script>
    <script src="./assets/zepto/zepto.min.js"></script>
    <script src="./js/public.js"></script>
    <script src="./js/detail.js"></script>
</head>

<body>
    <!-- 头部 -->
    <header class="mui-bar mui-bar-nav my-header">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">商品详情</h1>
    </header>
    <!-- 底部导航栏 -->
    <nav class="mui-bar mui-bar-tab my-footer">
        <a class="mui-tab-item" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <span class="mui-icon iconfont"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>
    <!-- 中心内容 -->
    <div class="mui-content">
        <div class="product">

        </div>
        <div class="num">
            数量：
            <span id="reduce">-</span>
            <input type="text" id="inp" value="1">
            <span id="increase">+</span>
            <div class="remain">剩余：44件</div>
        </div>
        <div class="btns">
            <a href="cart.html">查看购物车</a>
            <span id="addCart">加入购物车</span>
        </div>
    </div>
    <script type="text/template" id="productTemp">
        <div class="mui-slider">
            <div class="mui-slider-group">
                {{each pic}}
                <div class="mui-slider-item">
                    <a href="#"><img src="{{$value.picAddr}}" /></a>
                </div>
                {{/each}}
            </div>
        </div>
        <div class="product-title">{{proName}}</div>
        <div class="price">
            价格：
            <span class="newPrice">￥{{price}}</span>
            <span class="oldPrice">￥{{oldPrice}}</span>
        </div>
        <div class="size">
            尺码：
            {{set arr = size.split('-')}}
            <% for (var i = arr[0]; i <= arr[1]; i++) { %>
                <span>{{i}}</span>
            <% } %>
        </div>
    </script>
</body>

</html>